Show AllShow All

OCT2DEC

See Also

Converts an octal number to decimal.

If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in.

ShowHow?

Syntax

OCT2DEC(number)

Number    is the octal number you want to convert. Number may not contain more than 10 octal characters (30 bits). The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

Remark

If number is not a valid octal number, OCT2DEC returns the #NUM! error value.

Example

The example may be easier to understand if you copy it to a blank worksheet.

Show How?

 
1
2
3
A B
Formula Description (Result)
=OCT2DEC(54) Converts octal 54 to decimal (44)
=OCT2DEC(7777777533) Converts octal 7777777533 to decimal (-165)